package com.hbx.vo.login;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/*
 * @Author:hbx
 * 
 * */
@Data
public class MenuVo {
    /**
     * 默认选中
     */
    private List<String> selected = new ArrayList<>();

    /**
     * 默认展开
     */
    private List<Integer> spread = new ArrayList<>();

    /**
     * 菜单集合
     */
    private List<SubMenu> menuList = new ArrayList<>();



    @Data
    public static class SubMenu{
        /**
         * 菜单id
         */
        private Integer id;
        /**
         * 菜单标题
         */
        private String title;
        /**
         * 菜单图标
         */
        private String icon;
        /**
         * 菜单路由
         */
        private String href;
        /**
         * 子菜单
         */
        private List<SubMenu> children = new ArrayList<>();
    }
}

